﻿var menu_item=["项目构思","开发路线","当前进程","加入我们","成员列表","捐助"]    
var link=["index.html","roadmap.html","news.html","join.html","member.html","donate.html"]

function wrap(name,para,txt){return "<"+name+" "+para+">"+txt+"</"+name+">"}

function menu(now)
{
var content=""
for(var i=0;i!=menu_item.length;i++)
	{
		var text=wrap('a','onclick="this.blur()" href="'+link[i]+'"',menu_item[i])
		var para='onmouseover=\'this.id="current"\' onmouseout=\'this.id=""\' '
		if(menu_item[i]==now){para='id="current"'}//para for new use
		content+=wrap('li',para,text)
	}
document.write(wrap("ul","",content))
}